<?php
class Test_Common
{
	protected $_db;
	protected $_type;
	private $_table;
	
    public function __construct()
    {
        $this->_table = 'testing';
    	$this->_db = new Zend_Db_Table($this->_table);	
    } 
	
    public function getList()
    {
    	$Select = $this->_db->select()->where('type = ?', $this->_type)->order('Created');
        $Rows = $this->_db->fetchAll($Select);
        
        if ($Rows)
        {
            $Result = array();
        	foreach ($Rows as $Item)
            {
            	$Adder = array();
            	$Adder = $Item->toArray();
            	$Adder['Params'] = unserialize( $Item->Params );
            	
            	$Result[] = $Adder;
            }
            
            return $Adder;
        }
    }
    
    
	
}